/*
 * Created: 2020-03-10 09:07:16
 * Author : Mockingbird
 * Email : 1768385508@qq.com
 * -----
 * Description:
 */
// import { getIndexRoute } from 'utils/router.config'
import { getIndexRoute } from '@utils/router.config';
import Dashboard from '../containers/dashboard';
import Content from '../containers/content';
import News from '../containers/news';

export default [
  { path: '/dashboard', component: Dashboard, exact: true, isSider: true, title: '概览', icon: 'DashboardOutlined' },
  { path: '/news', component: News, exact: true, isSider: true, title: '新闻管理', icon: 'FileTextOutlined' },
  { path: '/content', component: Content, exact: true, isSider: true, title: '内容管理', icon: 'ProfileOutlined' },
  { path: '/doc', component: Content, exact: true, isSider: true, title: '文档管理', icon: 'ProfileOutlined' },
  { path: '/outhref', component: Content, exact: true, isSider: true, title: '外部链接', icon: 'ProfileOutlined' },
  {
    path: '/',
    redirect: { from: '/', to: '/dashboard', exact: true },
  },
  getIndexRoute({ path: '*', to: '/404', exact: true }),
];
